﻿/***
 * @Author: Xavier 1305433186@qq.com
 * @Date: 2024-07-27 16:15:43
 * @LastEditors: Xavier 1305433186@qq.com
 * @LastEditTime: 2024-08-14 13:42:01
 * @FilePath: \JS32T031_SDK\User\task\device_station_data.h
 * @Description: 
 * @
 * @STAYTRUE (c) 2024 by ${Xavier}, All Rights Reserved.
 */

#ifndef _DEVICE_STATION_DATA_H_
#define _DEVICE_STATION_DATA_H_
typedef enum
{
    device_start = 0x01,
    device_stop = 0x02,
} device_state_code;
typedef struct
{
    unsigned int flags;
    unsigned int rotational_speed;   // 旋转速度 单位 ：rpm
    unsigned int number_of_steps;    // 步数
    unsigned int motor_input_power;  // 电机输入功率
    unsigned int motor_output_power; // 电机输出功率
    unsigned int fault_code;         // 故障代码
} DRIVER_BOARD_DATA_T;

/*数据帧结构体声明并初始化*/
typedef struct
{
    unsigned char device_state;            // 设备状态
    DRIVER_BOARD_DATA_T driver_board_data; // 设备
} DEVICE_STATION_DATA_T;

void send_app_treadmill_data_analysis(DRIVER_BOARD_DATA_T *driver_board_data);

#endif
